package com.yougong.api.config;

import com.yougong.common.config.BaseSwaggerConfig;
import com.yougong.common.domain.SwaggerProperties;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.oas.annotations.EnableOpenApi;

/**
 * Swagger API文档相关配置
 * Created on 2018/4/26.
 */
@Configuration
@EnableOpenApi
public class SwaggerConfig extends BaseSwaggerConfig {

    @Override
    public SwaggerProperties swaggerProperties() {
        return SwaggerProperties.builder()
                .apiBasePackage("com.yougong.api.modules")
                .title("bl-community项目")
                .description("bl-community项目相关接口文档")
                .contactName("kirk")
                .version("1.0")
                .enableSecurity(true)
                .build();
    }
}
